/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: StandardController
 * @Package com.rx.core.bean
 * @Description: 标准控制器
 * @author: 陈锦韬
 * @date: 2020\8\12 0012
 * @version V1.0
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
package com.rx.core.controller;

import com.rx.core.base.RxBaseConstant;
import com.rx.core.base.RxBaseController;
import com.rx.core.base.RxResponse;
import com.rx.core.mode.TotalHandlerContainer;
import com.rx.core.service.StandardService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Administrator
 * @Description: 标准控制器
 * @date: 2020\8\12 0012
 */
@RestController
@RequestMapping(RxBaseConstant.CONFIG_COMMON_API)
@Slf4j
public class CommonController extends RxBaseController {

    @Autowired
    StandardService standardService;

    /**
     * 处理器日志
     * @return
     */
    @PostMapping(value = "handler-config-log")
    public Object handlerConfigLog(){
        RxResponse rxResponse = new RxResponse();
        rxResponse.setResultData(TotalHandlerContainer.log().toString());
        return rxResponse;
    }

}
